package com.zto.design.command;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2020-11-28 19:26
 **/
public class Invoker {
    private ICommand command = null;

    //设置命令
    public void setCommand(ICommand command) {
            this.command = command;
    }

    //执行命令
    public void runCommand() {
        System.out.println("调用者调用...");
        command.execute();
    }
}
